<?php 
	/**
	* 公司职位视图模型
	*/
	class ComPosViewModel extends ViewModel
	{
		public $table = 'user';

		public $view = array(
				'company_baseinfo' =>array(
					'type' => INNER_JOIN,
					'on' => 'uid = company_baseinfo.user_uid'
					),
				'company_otherinfo' =>array(
					'type'=>INNER_JOIN,
					'on'=>'uid = company_otherinfo.user_uid'
					)
			);

		public function get_info($field=NULL){
			// $where = array('')
			$where=array(
				'uid'=>session('uid')

				);
			return $this->field($field)->where($where)->find();
		}

	
	}

 ?>